-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Revise operation in rangebreaks #4660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/plots/cartesian/set_convert.js
Outdated
|
||
if(onOpenBound && op0 === '(' && v === b0) return BADNUM; | ||
onOpenBound = op1 === ')' && v === b1; | ||
if(onOpenBound && v === b0) return BADNUM; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like onOpenBound
can just be 🔪 at this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good eye. Done in c4dde70.
}, | ||
{ | ||
"pattern": "hour", | ||
"bounds": [ 16, 8 ], | ||
"operation": "()" | ||
"bounds": [ 16.001, 8 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! Just one small comment https://github.com/plotly/plotly.js/pull/4660/files?short_path=6ccd23f#r394320834 and this is ready to 💃
Follow up of #4614, and in regards with #4655 (comment) and #4655 (comment)
commits in this PR are steps to change default
operation
to[)
and make it internal.@plotly/plotly_js